package com.patttern.behavior.template;

/**
 * @Author: root
 * @Date: 2018/12/3 22:48
 */
public abstract class TemplateMethod {
    private void start(){
        System.out.println("start..............");
    }
    private void middle(){
        System.out.println("middle..............");
    }
    public abstract void execute();
    private void end(){
        System.out.println("end..............");
    }
    public final void transact(){
        this.start();
        this.middle();
        this.execute();
        this.end();
    }
}
